/**
 * HTTP服务连接配置
 * 域名请求头及接口地址配置
 */
import environment from './environment';
export const API = {
  domain: environment.domain,
  headers: {
    'Access-Control-Allow-Origin': '*',
    'Content-Type': 'application/json; charset=UTF-8',
  },
  //流程
  process: {
    queryAllProcess: '/process/queryAllProcess',
    pageQueryProcessDefinition: '/process/pageQueryProcessDefinition/{page}/{pageSize}',
    mergeProcessDefinition: '/process/mergeProcessDefinition',
    updateProcessDefinition: '/process/updateProcessDefinition',
    deleteProcessDefinition: '/process/deleteProcessDefinition',
    queryProcessDefinition: '/process/queryProcessDefinition',
    pageQueryProcess: '/process/pageQueryProcess/{page}/{pageSize}',
    queryProcessDetail: '/process/queryProcessDetail',
    operateProcess: '/process/operateProcess',
  },
  //数据源
  datasource: {
    testConnect: '/datasource/testConnect',
    queryAllDatasource: '/datasource/queryAllDatasource',
    pageQueryDatasource: '/datasource/pageQueryDatasource/{page}/{pageSize}',
    addDatasource: '/datasource/addDatasource',
    updateDatasource: '/datasource/updateDatasource',
    deleteDatasource: '/datasource/deleteDatasource',
  },
  //数据模型
  datatable: {
    queryAllDataTable: '/dataTable/queryAllDataTable',
    pageQueryDataTable: '/dataTable/pageQueryDataTable/{page}/{pageSize}',
    addDataTable: '/dataTable/addDataTable',
    updateDataTable: '/dataTable/updateDataTable',
    deleteDataTable: '/dataTable/deleteDataTable',
    showTables: '/dataTable/showTables',
    generateTable: '/dataTable/generateTable',
  },
  //数据模型字段
  dataTableField: {
    pageQueryDataTableField: '/dataTableField/pageQueryDataTableField/{page}/{pageSize}',
    addDataTableField: '/dataTableField/addDataTableField',
    updateDataTableField: '/dataTableField/updateDataTableField',
    deleteDataTableField: '/dataTableField/deleteDataTableField',
  },
};
